package thread;

import lombok.extern.slf4j.Slf4j;

/**
 *
 */
@Slf4j
public class ThreadLocalTest {
    static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
    static ThreadLocal<Integer> threadLocal2 = new ThreadLocal<>();

    public static void main(String[] args) {
        threadLocal.set(1);
        threadLocal2.set(2);
        threadLocal.set(3);

//        log.info("threadLocal：{}", threadLocal.get());
//        log.info("threadLocal2：{}", threadLocal2.get());

//        threadLocal2.remove();

//        log.info("threadLocal：{}", threadLocal.get());
//        log.info("threadLocal2：{}", threadLocal2.get());
    }
}
